package deltadesk.gui.deltagui.demo;

import java.net.MalformedURLException;

import deltadesk.gui.deltagui.widget.AutoFitPanel;
import deltadesk.gui.deltagui.widget.Panel;
import deltadesk.gui.deltagui.widget.Picture;

public class PictureDemo extends Panel {
	
	/** The picture URL. */
	private static final String URL = 
		"http://www.google.de/intl/de_de/images/logo.gif";

	
	/**
	 * Construct the demo.
	 * 
	 * @throws MalformedURLException
	 */
	public PictureDemo() throws MalformedURLException {
		
		super(1, 2);
		add(new Picture(URL));
		
		final AutoFitPanel pv = new AutoFitPanel(
				new Picture(getClass().getResource("image1.jpg")));
		add(pv);
		pv.setScaleUp(true);
	}

}
